#ifndef HYMATH_H
#define HYMATH_H

#include <QList>
#include <QStack>

class HYMath
{
public:
    QList<char> inputStr;

    static QStack<double> m; // 数字栈
    static QStack<char> s;   // 符号栈

public:
    HYMath();

    void Read();
    static double PopStack();
    static bool IsOperator(char c);        // 是否是操作符
    static bool IsOper(char c);            // 是否是运算符
    static int OperatorPrecedence(char a); // 操作符优先级
    static double Operat(double n1, double n2, char s1);

    QString DataMain();
};

#endif // HYMATH_H
